<% if blogs.total_pages > 1 %>
  <% content_for :javascripts do %>
  <script type="text/javascript">
  $(function(){
    $('div.pagination').append(' 共<%= blogs.total_entries %>篇文章');
  });
  </script>
  <% end %>
<% end %>